package com.xjmall.pojo;

import java.util.Date;

public class Specifications {
    private Long id;

    private Integer productId;

    private String name;

    private Long price;

    private Long sellPrice;

    private Integer stock;

    private Date createTime;

    private Date updateTime;

    public Specifications(Long id, Integer productId, String name, Long price, Long sellPrice, Integer stock, Date createTime, Date updateTime) {
        this.id = id;
        this.productId = productId;
        this.name = name;
        this.price = price;
        this.sellPrice = sellPrice;
        this.stock = stock;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Specifications() {
        super();
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Integer getProductId() {
        return productId;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Long getPrice() {
        return price;
    }

    public void setPrice(Long price) {
        this.price = price;
    }

    public Long getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(Long sellPrice) {
        this.sellPrice = sellPrice;
    }

    public Integer getStock() {
        return stock;
    }

    public void setStock(Integer stock) {
        this.stock = stock;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}